<!--
 * @Author: YiY
 * @Date: 2023-12-13 19:52:42
 * @LastEditTime: 2024-12-11 19:37:50
-->


<template>
  <div class="header flex gap items-center text-black bg-red-300 gap-[30px]">
    <router-link class=" border-4 border-green-200" :to="route.path" v-for="route in routes" :key="route.path">{{route.name}}</router-link>
    <!-- <router-link to="/vif">route.name</router-link> -->
  </div>
  <router-view></router-view>
</template>

<script setup lang="ts">
import {genRoutes} from '@/router/index'
import { ref } from 'vue'
const routes = ref(genRoutes)

</script>

<style lang="scss" scoped>
.header {
  height: 50px;
  background-color: lightgray;
}
</style>
